package com.imdroid.web.push2;

import java.net.InetAddress;
import java.net.SocketAddress;

public class UDPConnection {
	/**
	 * The inet address of client
	 */
	private InetAddress inetAddress;
	/**
	 * The port of the client connection;
	 */
	private int port;
	/**
	 * The socket address
	 */
	private SocketAddress socketAddress;
	/**
	 * The time of the last update.
	 */
	private long lastUpdate;

	/**
	 * @return the inetAddress
	 */
	public InetAddress getInetAddress() {
		return inetAddress;
	}

	/**
	 * @param inetAddress
	 *            the inetAddress to set
	 */
	public void setInetAddress(InetAddress inetAddress) {
		this.inetAddress = inetAddress;
	}

	/**
	 * @return the port
	 */
	public int getPort() {
		return port;
	}

	/**
	 * @param port
	 *            the port to set
	 */
	public void setPort(int port) {
		this.port = port;
	}

	/**
	 * @return the socketAddress
	 */
	public SocketAddress getSocketAddress() {
		return socketAddress;
	}

	/**
	 * @param socketAddress
	 *            the socketAddress to set
	 */
	public void setSocketAddress(SocketAddress socketAddress) {
		this.socketAddress = socketAddress;
	}

	/**
	 * @return the lastUpdate
	 */
	public long getLastUpdate() {
		return lastUpdate;
	}

	/**
	 * @param lastUpdate
	 *            the lastUpdate to set
	 */
	public void setLastUpdate(long lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

}
